package io.bdmc.modules.sys.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import io.bdmc.common.annotation.DataFilter;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.sys.dao.SysDeptMapper;
import io.bdmc.modules.sys.entity.SysDept;
import io.bdmc.modules.sys.service.ISysDeptService;



@Service("sysDeptService")
//public class SysDeptServiceImpl implements SysDeptService {
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements ISysDeptService {

	
	@Autowired
	private SysDeptMapper deptMapper;
	
	@Override
	@DataFilter(tableAlias = "d")
	public MyPage<SysDept> queryList(MyPage<SysDept> myPage){
		return deptMapper.queryList(myPage);
	}

	@Override
	public List<Long> queryDetpIdList(Long parentId) {
		return deptMapper.queryDetpIdList(parentId);
	}

}
